Skip to content

feat: Add create-expert CLI and create-expert-skill MCP server#467

Merged
FL4TLiN3 merged 2 commits intomainfrom
feat/create-expert-skill
Feb 10, 2026
Merged

feat: Add create-expert CLI and create-expert-skill MCP server#467
FL4TLiN3 merged 2 commits intomainfrom
feat/create-expert-skill

Conversation

@FL4TLiN3
Copy link
Contributor

Summary

  • apps/create-expert: CLI package that wraps startHandler to create/modify expert definitions via AI. Reads its bundled perstack.toml at runtime via fs.readFileSync + import.meta.url.
  • apps/create-expert-skill: MCP stdio skill providing a runExpert tool that spawns perstack run as a subprocess to test-run created experts. Returns summarized activities and usage.
  • startHandler export from perstack package with additionalEnv callback, enabling create-expert to inject provider API keys (e.g. ANTHROPIC_API_KEYPROVIDER_API_KEY) into the MCP skill environment without exposing them to all skills globally.
  • lazyInit bug fix in BaseSkillManager: suppresses unhandled promise rejections for lazy-init skills and returns empty tools when initialization fails.
  • E2E test suite for create-expert.

Test plan

  • pnpm typecheck passes (all 18 packages)
  • pnpm test passes (1101/1101 unit tests)
  • pnpm build succeeds
  • pnpm biome check clean
  • npx tsx apps/create-expert/bin/cli.ts --help works in dev mode
  • E2E: pnpm test:e2e -- --testPathPattern create-expert

🤖 Generated with Claude Code

FL4TLiN3 and others added 2 commits February 10, 2026 09:28
- apps/create-expert: CLI that wraps startHandler to create/modify expert definitions
- apps/create-expert-skill: MCP stdio skill with runExpert tool that spawns
  `perstack run` subprocess to test-run expert definitions
- Export startHandler from perstack package with additionalEnv callback for
  injecting provider API keys into MCP skill environments without exposing
  them globally
- Fix lazyInit bug in BaseSkillManager: suppress unhandled promise rejection
  and return empty tools for failed lazy-init skills
- Add E2E tests for create-expert

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 merged commit 5d51959 into main Feb 10, 2026
9 checks passed
@FL4TLiN3 FL4TLiN3 mentioned this pull request Feb 10, 2026
@FL4TLiN3 FL4TLiN3 deleted the feat/create-expert-skill branch February 25, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant